package config

import (
	"github.com/zeromicro/go-zero/rest"
	"github.com/zeromicro/go-zero/zrpc"
)

type Config struct {
	rest.RestConf

	Auth struct {
		AccessSecret string
		AccessExpire int64
	}

	Query struct {
		DefaultAmount int64
		MaxAmount     int64
	}

	NfsConf struct {
		ProxyUrl        string
		StaticUrl       string
		AllowedFileExts string
		PathPrefix      string
		UploadPath      string
		DefaultFileTerm int64
	}

	QiniuConf struct {
		AccessKey     string
		SecretKey     string
		Bucket        string
		Domain        string
		Region        string
		UseHTTPS      bool
		UseCdnDomains bool
	}

	AttachmentRpc zrpc.RpcClientConf
	UserRpc       zrpc.RpcClientConf
}
